                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            已发布收费病例列表
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th><center>{:L('is_pics')}</center></th>
                                            <th><center>{:L('diagnostic')}</center></th>
                                            <th><center>{:L('major')}</center></th>
                                            <th><center>{:L('tp')}</center></th>
                                            <th><center>{:L('pubtime')}</center></th>
                                            <th><center>操作</center></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <volist name="records" id="vo">
                                        <tr class="odd gradeX">
                                            <td><center><img src="{$vo.image}" width="50"></center></td>
                                            <td style="vertical-align: middle;"><center>{$vo['diagnostic']}</center></td>
                                            <td style="vertical-align: middle;"><center>{$vo['major']}</center></td>
                                            <td class="center" style="vertical-align: middle;"><center>{$vo['tp']}</center></td>
                                            <td style="vertical-align: middle;">
                                                <center>
                                                    {$vo.pubtime|date="Y-m-d",###}
                                                </center>
                                            </td>
                                            <td class="center" style="vertical-align: middle;">
                                                <center>
                                                    <button type="button" class="btn btn-success btn-xs" data-toggle="modal" data-target="#exampleModal" data-whatever="{$vo.id}" title="查看用户病历">
                                                        <i class="fa fa-edit"></i>
                                                    </button>
                                                </center>
                                            </td> 
                                        </tr>
                                        </volist>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                {$page}
                <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                  <div class="modal-dialog modal-lg">
                    <div class="modal-content">
                      <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="exampleModalLabel">查看病例</h4>
                      </div>
                      <div class="modal-body">
                        <div class="row">
                            <div class="col-md-12">
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('gender')}
                                  </div>
                                  <div class="panel-body gender">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('age')}
                                  </div>
                                  <div class="panel-body age">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('complain')}
                                  </div>
                                  <div class="panel-body complain">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('history')}
                                  </div>
                                  <div class="panel-body history">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('oralhistory')}
                                  </div>
                                  <div class="panel-body oralhistory">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('profile')}
                                  </div>
                                  <div class="panel-body profile">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('normalcheck')}
                                  </div>
                                  <div class="panel-body normalcheck">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('specialcheck')}
                                  </div>
                                  <div class="panel-body specialcheck">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('diagnostic')}
                                  </div>
                                  <div class="panel-body diagnostic">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('major')}
                                  </div>
                                  <div class="panel-body gender">
                                      
                                  </div>
                                  <div class="panel-major">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('tp')}
                                  </div>
                                  <div class="panel-body tp">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('rediagnosis')}
                                  </div>
                                  <div class="panel-body rediagnosis">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('prognosis')}
                                  </div>
                                  <div class="panel-body prognosis">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('imageupload')}
                                  </div>
                                  <div class="panel-body imageupload">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('discuss')}
                                  </div>
                                  <div class="panel-body discuss">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                              <div class="panel panel-default">
                                  <div class="panel-heading">
                                      {:L('praise')}
                                  </div>
                                  <div class="panel-body praise">
                                      
                                  </div>
                                  <div class="panel-footer">
                                  </div>
                              </div>
                            </div>
                        </div>
                      </div>
                      <div class="modal-footer">
                        <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
                      </div>
                    </div>
                  </div>
                </div>
                <script type="text/javascript">
                    $('#exampleModal').on('show.bs.modal', function (event) {
                      var button = $(event.relatedTarget) // Button that triggered the modal
                      var recipient = button.data('whatever') // Extract info from data-* attributes
                      // If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
                      // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
                      var modal = $(this);
                      modal.find('.modal-body .imageupload').html("");
                      $.post("__APP__/Medicalrecord/getrecord",{id:recipient},function(e){
                        modal.find('.modal-body .gender').html(e.list.gender);
                        modal.find('.modal-body .age').html(e.list.age);
                        modal.find('.modal-body .complain').html(e.list.complain);
                        modal.find('.modal-body .history').html(e.list.history);
                        modal.find('.modal-body .oralhistory').html(e.list.oralhistory);
                        modal.find('.modal-body .history').html(e.list.history);
                        modal.find('.modal-body .profile').html(e.list.profile);
                        modal.find('.modal-body .normalcheck').html(e.list.normalcheck);
                        modal.find('.modal-body .specialcheck').html(e.list.specialcheck);
                        modal.find('.modal-body .diagnostic').html(e.list.diagnostic);
                        modal.find('.modal-body .major').html(e.list.major);
                        modal.find('.modal-body .tp').html(e.list.tp);
                        modal.find('.modal-body .rediagnosis').html(e.list.rediagnosis);
                        modal.find('.modal-body .prognosis').html(e.list.prognosis);
                        if(e.image.length>1){
                          $.each(e.image,function(k,v){
                            modal.find('.modal-body .imageupload').append("<img src='"+v.image+"' width='50' height='50'> ");
                          })
                        }
                        modal.find('.modal-body .discuss').html(e.list.discuss);
                        modal.find('.modal-body .praise').html(e.list.praise);
                      })
                      
                    })
                </script>